﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Entity;
using EmailMarketingDao;

namespace EmailMarketingService
{
   public class SmtpService
    {
       /// <summary>
       /// 获取SMTP服务器已发送数量
       /// </summary>
       /// <param name="name"></param>
       /// <returns></returns>
       public static int GetSmtpServerHasSendCountByName(string name)
       {
           var smtp=SmtpServerDao.GetEmailSmtpServcerByName(name);
           return smtp.HasSendCount;
       }
    }
}
